import value, { getValue } from "./module";

it("should accept a shared dependency", async () => {
	expect(value).toBe("module");
	await expect(getValue()).resolves.toHaveProperty("default", "module");
	await NEXT_HMR();
	expect(value).toBe("common-lib");
	await expect(getValue()).resolves.toHaveProperty("default", "common-lib");
});

module.hot.accept("./module");
